//
//  KINGStatusNormalCell.swift
//  肉荣微博
//
//  Created by king on 15/8/3.
//  Copyright © 2015年 king. All rights reserved.
//

import UIKit

class KINGStatusNormalCell: KINGStatusCell {
/// 卧槽这里多了这个会造成，布局出错，为啥呢？
//    override var status:KINGStatuses? {
//        didSet {
//            setupUI()
//        }
//    }
//    
    override func setupUI() {
        super.setupUI()
        pictureView.ff_AlignVertical(type: ff_AlignType.BottomLeft, referView: messageLabel, size: nil, offset: CGPoint(x: 0, y: statusCellContolMargin))
        contentView.addConstraint(NSLayoutConstraint(item: pictureView, attribute: NSLayoutAttribute.Width, relatedBy: NSLayoutRelation.Equal, toItem: nil, attribute: NSLayoutAttribute.NotAnAttribute, multiplier: 1.0, constant: 100))
        
        pictureWidthLayout = contentView.constraints.last
        contentView.addConstraint(NSLayoutConstraint(item: pictureView, attribute: NSLayoutAttribute.Height, relatedBy: NSLayoutRelation.Equal, toItem: nil, attribute: NSLayoutAttribute.NotAnAttribute, multiplier: 1.0, constant: 100))
        pictureHeightLayout = contentView.constraints.last

    }

}
